package com.lyy.aspect;

import com.lyy.entity.Dog;
import lombok.SneakyThrows;
import org.aspectj.lang.ProceedingJoinPoint;

/**
 * @author Liangyaoyun
 */
public class StudentService {
    public void insert() {
        System.out.println("添加一名学生");
    }

    public void methon02() {
        throw new RuntimeException("methon02爆发异常");
    }

    public Dog info(String dogName) {
        System.out.println("info() 方法被调用，参数为: " + dogName);
        if (dogName == null) {
            throw new RuntimeException("狗的名字不能为null");
        }
        return new Dog();
    }
}

